3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to create and manipulate tori. See "Tori" for the definition of a torus.
You can use the Q3Torus_New function to create a new torus.
TQ3GeometryObject Q3Torus_New (const TQ3TorusData *torusData);
You can use the Q3Torus_Submit function to submit an immediate torus for drawing, picking, bounding, or writing.
TQ3Status Q3Torus_Submit (
const TQ3TorusData *torusData,
TQ3ViewObject view);
The Q3Torus_Submit function submits for drawing, picking, bounding, or writing the immediate torus whose shape and attribute set are specified by the torusData parameter. The torus is drawn, picked, bounded, or written according to the view characteristics specified in the view parameter.
You can use the Q3Torus_GetData function to get the data that defines a torus and its attributes.
TQ3Status Q3Torus_GetData (
TQ3GeometryObject torus,
TQ3TorusData *torusData);
You can use the Q3Torus_SetData function to set the data that defines a torus and its attributes.
TQ3Status Q3Torus_SetData (
TQ3GeometryObject torus,
const TQ3TorusData *torusData);
You can use the Q3Torus_EmptyData function to release the memory occupied by the data structure returned by a previous call to Q3Torus_GetData .
TQ3Status Q3Torus_EmptyData (TQ3TorusData *torusData);
You can use the Q3Torus_GetOrigin function to get the origin of a torus.
TQ3Status Q3Torus_GetOrigin (
TQ3GeometryObject torus,
TQ3Point3D *origin);
You can use the Q3Torus_SetOrigin function to set the origin of a torus.
TQ3Status Q3Torus_SetOrigin (
TQ3GeometryObject torus,
const TQ3Point3D *origin);
You can use the Q3Torus_GetOrientation function to get the orientation of a torus.
TQ3Status Q3Torus_GetOrientation (
TQ3GeometryObject torus,
TQ3Vector3D *orientation);
You can use the Q3Torus_SetOrientation function to set the orientation of a torus.
TQ3Status Q3Torus_SetOrientation (
TQ3GeometryObject torus,
const TQ3Vector3D *orientation);
You can use the Q3Torus_GetMajorRadius function to get the major radius of a torus.
TQ3Status Q3Torus_GetMajorRadius (
TQ3GeometryObject torus,
TQ3Vector3D *majorRadius);
You can use the Q3Torus_SetMajorRadius function to set the major radius of a torus.
TQ3Status Q3Torus_SetMajorRadius (
TQ3GeometryObject torus,
const TQ3Vector3D *majorRadius);
You can use the Q3Torus_GetMinorRadius function to get the minor radius of a torus.
TQ3Status Q3Torus_GetMinorRadius (
TQ3GeometryObject torus,
TQ3Vector3D *minorRadius);
You can use the Q3Torus_SetMinorRadius function to set the minor radius of a torus.
TQ3Status Q3Torus_SetMinorRadius (
TQ3GeometryObject torus,
const TQ3Vector3D *minorRadius);
You can use the Q3Torus_GetRatio function to get the ratio of a torus.
TQ3Status Q3Torus_GetRatio (
TQ3GeometryObject torus,
float *ratio);
You can use the Q3Torus_SetRatio function to set the ratio of a torus.
TQ3Status Q3Torus_SetRatio (
TQ3GeometryObject torus,
float ratio);
Previous | QD3D Book | Overview | Chapter Contents | Next |